package e_Print;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package e_Print
 * @date 2024/4/14 下午1:38
 */
public class Test02 {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream printStream = new PrintStream(new FileOutputStream(""));
        //改变流向
        System.setOut(printStream);
        System.out.println("23");
        System.out.println("123123");
        System.out.println("非");
        printStream.println();
        printStream.close();
    }
}
